package com.uniandes.modelviewer.dbcontrollers

import com.uniandes.modelviewer.dsl.XmiModel;

class XmiModelController {

	static scaffold = XmiModel

	def index () {
		def x = XmiModel.list(sort:"name",order:"asc")
		render(view:"/index", model: x)
	}

	def sortModels () {
		return [mdls: XmiModel.list(sort:"name",order:"asc")]
	}
}
